<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>登录成功</title>
<script>
// 设置倒计时秒数
var countdownSeconds = 5;

// 设置定时器，每秒执行一次
var timer = setInterval(function() {
    // 更新页面上的倒计时显示
    document.getElementById("countdown").textContent = "登录成功！ " + countdownSeconds + " 秒后跳转到首页...";

    // 时间减一秒
    countdownSeconds--;

    // 如果倒计时结束，清除定时器并跳转到首页
    if (countdownSeconds < 0) {
        clearInterval(timer);
        window.location.href = "/register.html"; // 替换为你的首页URL
    }
}, 1000);
</script>
</head>
<body>
<div class="login-success">
    <h1>登录成功！</h1>
    <p id="countdown"></p>
</div>
</body>
</html>

<!-- <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hello World Page</title>
</head>
<body>
    <h1>Hello World</h1>
</body>
</html> -->
